package com.yy.permissions_general.module.system.history.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 更新历史
 * </p>
 *
 * @author YY
 * @since 2022-02-16
 */
@Data
@TableName("sys_history")
public class History extends Model<History> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 更新内容
     */
    @TableField("content")
    private String content;

    /**
     * 更新时间
     */
    @TableField("history_date")
    private Date historyDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
